﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Security.Cryptography;
using System.Text;
using System.Threading.Tasks;

namespace drawing_print.util
{
    class MD5
    {
        private static String token = "jD2MVqkdEaATxGB5Wb68wSCOXp4lnYcP0N3LKzvr9R1tHgFUZhmQIiosJufy7e";//密盐
        public static string Token
        {
            get
            {
                return token;
            }
            set
            {
                token = value;
            }
        }

        public static string GetMd532(string str)
        {
            MD5CryptoServiceProvider md5 = new MD5CryptoServiceProvider();
            byte[] bytes = Encoding.UTF8.GetBytes(str);
            string result = BitConverter.ToString(md5.ComputeHash(bytes));
            return result.Replace("-", "");
        }

}
}
